package com.ruoyi.statistic.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.statistic.mapper.WMonthEnterWarehouseGoodsRelMapper;
import com.ruoyi.statistic.domain.WMonthEnterWarehouseGoodsRel;
import com.ruoyi.statistic.service.IWMonthEnterWarehouseGoodsRelService;

/**
 * 月入库关联Service业务层处理
 * 
 * @author wzy
 * @date 2024-06-20 18:22:49
 */
@Service
public class WMonthEnterWarehouseGoodsRelServiceImpl implements IWMonthEnterWarehouseGoodsRelService 
{
    @Autowired
    private WMonthEnterWarehouseGoodsRelMapper wMonthEnterWarehouseGoodsRelMapper;

    /**
     * 查询月入库关联
     * 
     * @param monthEnterStatisticId 月入库关联主键
     * @return 月入库关联
     */
    @Override
    public WMonthEnterWarehouseGoodsRel selectWMonthEnterWarehouseGoodsRelByMonthEnterStatisticId(Long monthEnterStatisticId)
    {
        return wMonthEnterWarehouseGoodsRelMapper.selectWMonthEnterWarehouseGoodsRelByMonthEnterStatisticId(monthEnterStatisticId);
    }

    /**
     * 查询月入库关联列表
     * 
     * @param wMonthEnterWarehouseGoodsRel 月入库关联
     * @return 月入库关联
     */
    @Override
    public List<WMonthEnterWarehouseGoodsRel> selectWMonthEnterWarehouseGoodsRelList(WMonthEnterWarehouseGoodsRel wMonthEnterWarehouseGoodsRel)
    {
        return wMonthEnterWarehouseGoodsRelMapper.selectWMonthEnterWarehouseGoodsRelList(wMonthEnterWarehouseGoodsRel);
    }

    /**
     * 新增月入库关联
     * 
     * @param wMonthEnterWarehouseGoodsRel 月入库关联
     * @return 结果
     */
    @Override
    public int insertWMonthEnterWarehouseGoodsRel(WMonthEnterWarehouseGoodsRel wMonthEnterWarehouseGoodsRel)
    {
        return wMonthEnterWarehouseGoodsRelMapper.insertWMonthEnterWarehouseGoodsRel(wMonthEnterWarehouseGoodsRel);
    }

    /**
     * 修改月入库关联
     * 
     * @param wMonthEnterWarehouseGoodsRel 月入库关联
     * @return 结果
     */
    @Override
    public int updateWMonthEnterWarehouseGoodsRel(WMonthEnterWarehouseGoodsRel wMonthEnterWarehouseGoodsRel)
    {
        return wMonthEnterWarehouseGoodsRelMapper.updateWMonthEnterWarehouseGoodsRel(wMonthEnterWarehouseGoodsRel);
    }

    /**
     * 批量删除月入库关联
     * 
     * @param monthEnterStatisticIds 需要删除的月入库关联主键
     * @return 结果
     */
    @Override
    public int deleteWMonthEnterWarehouseGoodsRelByMonthEnterStatisticIds(Long[] monthEnterStatisticIds)
    {
        return wMonthEnterWarehouseGoodsRelMapper.deleteWMonthEnterWarehouseGoodsRelByMonthEnterStatisticIds(monthEnterStatisticIds);
    }

    /**
     * 删除月入库关联信息
     * 
     * @param monthEnterStatisticId 月入库关联主键
     * @return 结果
     */
    @Override
    public int deleteWMonthEnterWarehouseGoodsRelByMonthEnterStatisticId(Long monthEnterStatisticId)
    {
        return wMonthEnterWarehouseGoodsRelMapper.deleteWMonthEnterWarehouseGoodsRelByMonthEnterStatisticId(monthEnterStatisticId);
    }
}
